package com.oasen.learn.usercenter.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

import com.oasen.learn.usercenter.annotation.State;
import com.oasen.learn.usercenter.dao.UserMetaDao;
import com.oasen.learn.usercenter.dao.imp.UserMetaDaoImp;
import com.oasen.learn.usercenter.service.UserMetaService;

@Configuration
//@ComponentScan(basePackageClasses={UserMetaService.class,UserMetaDao.class})
public class UserConfig {
//	@Bean
//	@State
//	@Conditional(StateCondition.class)
//	public UserMetaService userMetaService(UserMetaDao userMetaDao){
//		UserMetaService userMetaService = new UserMetaService(userMetaDao);
//		return userMetaService;
//	}
//	@Bean
//	public UserMetaDao userMetaDao(){
//		return new UserMetaDaoImp();
//	}
}
